package com.vip.web.dto;

import java.util.HashMap;

public class Result {

    private Object meta;
    private Object data;



    public Result(Object meta, Object data) {
        this.meta = meta;
        this.data = data;
    }

    public Object getMeta() {
        return meta;
    }

    public void setMeta(Object meta) {
        this.meta = meta;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static Result success(Object data, HashMap<String, Object> meta){
        return new Result(data,meta);
    }

    public static Result fail(Object data,String meta){
        return new Result(data,meta);
    }
}

